#!/bin/sh
#SBATCH --job-name=OmpJob
#SBATCH --nodes=2
#SBATCH --ntasks-per-node=4
#SBATCH --cpus-per-task=2
#SBATCH --partition=wzhcnormal

# load the environment
module purge      #clean the environment
module load compiler/devtoolset/7.3.1
module load compiler/cmake/3.15.6
module load mpi/hpcx/2.7.4/gcc-7.3.1
module load compiler/intel/2017.5.239

export I_MPI_PMI_LIBRARY=/opt/gridview/slurm/lib/libpmi.so
export PARMETIS_HOME=/work/home/acyktb2gan/apps/parmetis/4.0.3/hpcx-2.7.4-gcc-7.3.1
export PATH=$PARMETIS_HOME/bin:$PATH
export CPATH=$PARMETIS_HOME/include:$CPATH
export LD_LIBRARY_PATH=$PARMETIS_HOME/lib:$LD_LIBRARY_PATH
export LIBRARY_PATH=$PARMETIS_HOME/lib:$LIBRARY_PATH

# running the command
#mpiicc -g -pthread -o main.x main.c
srun --mpi=pmix_v3 ../../dg-pdelab-demo -ini euler.ini 
